const config = [
  { path: '/movie/:mid', component: () => import('@/components/Movie.vue'), props: true }, //设置动态路由
  {
    path: '/movie2',
    component: () => import('@/components/Movie.vue'),
    props: (route) => ({ query: route.query }),
  }, //设置动态路由
  {
    path: '/about',
    component: () => import('@/components/About.vue'),
    redirect: '/about/tab1', //指定默认子路由（或者在子路由中，指定''对应的路由）
    children: [
      //默认子路由规则没有/
      { path: 'tab1', component: () => import('@/components/about/Tab1.vue') }, //访问/about/tab1时，指向Tab1组件
      { path: 'tab2', component: () => import('@/components/about/Tab2.vue') }, //访问/about/tab2时，指向Tab2组件
    ],
  },
]
export default config
